#!/bin/bash  
while getopts :h:m:g:d:r: ARGS
do
case $ARGS in
    h)
        home=$OPTARG
        ;;
	m)
        mine=$OPTARG
        ;;
	g)
        message=$OPTARG
        ;;
	d)
        device=$OPTARG
        ;;
	r)
        radius_small=$OPTARG
        ;;

esac
done
root=$(cd `dirname $0`; pwd)
resources=${root}/src/main/res/values/customize_layout.xml
echo $resources
if [ $home ]; then
	echo $home
	${root}/../module_resources_replace.sh layout_tange_global_home_page_style ${home}  ${resources}
fi
if [ $mine ]; then
	echo $mine
	${root}/../module_resources_replace.sh layout_tange_global_mine_page_style ${mine}  ${resources}
fi
if [ $message ]; then
	echo $message
	${root}/../module_resources_replace.sh layout_tange_global_message_page_style ${message}  ${resources}
fi
if [ $device ]; then
	echo $device
	${root}/../module_resources_replace.sh layout_tange_global_home_page_device_card_style ${device}  ${resources}
fi
resources=${root}/src/main/res/values/customize.xml
if [ $radius_small ]; then
	echo $radius_small
	${root}/../module_resources_replace.sh global_customize_fixed_global_rounded_radius_small ${radius_small}dp  ${resources}
fi